home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / sun3.md / RCS / varargs.h,v < prev    next >
Encoding:
Text File  |  1991-12-03  |  1.9 KB  |  101 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  sprited:1.2.1;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     89.07.14.09.17.42;  author rab;  state Exp;
  11. branches 1.2.1.1;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     88.06.21.09.37.01;  author ouster;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19. 1.2.1.1
  20. date     91.12.02.21.22.08;  author kupfer;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @@
  27.  
  28.  
  29. 1.2
  30. log
  31. @*** empty log message ***
  32. @
  33. text
  34. @/*
  35.  * varargs.h --
  36.  *
  37.  *    Macros for handling variable-length argument lists.
  38.  *
  39.  * Copyright 1988 Regents of the University of California
  40.  * Permission to use, copy, modify, and distribute this
  41.  * software and its documentation for any purpose and without
  42.  * fee is hereby granted, provided that the above copyright
  43.  * notice appear in all copies.  The University of California
  44.  * makes no representations about the suitability of this
  45.  * software for any purpose.  It is provided "as is" without
  46.  * express or implied warranty.
  47.  *
  48.  * $Header: /sprite/src/lib/include/sun3.md/RCS/varargs.h,v 1.1 88/06/21 09:37:01 ouster Exp Locker: rab $ SPRITE (Berkeley)
  49.  */
  50.  
  51. #ifndef _VARARGS
  52. #define _VARARGS
  53.  
  54. typedef struct {
  55.     char *vl_current;            /* Pointer to last arg returned from
  56.                      * list. */
  57.     char *vl_next;            /* Pointer to next arg to return. */
  58. } va_list;
  59.  
  60. #define va_alist _va_args
  61.  
  62. #define va_dcl int _va_args;
  63.  
  64. #define va_start(list) \
  65.     (list).vl_current = (list).vl_next = (char *) &_va_args;
  66.  
  67. #define va_arg(list, type)            \
  68.     ((list).vl_current = (list).vl_next,    \
  69.     (list).vl_next += sizeof(type),        \
  70.      *((type *) (list).vl_current))
  71.  
  72. #define va_end(list)
  73.  
  74. #endif /* _VARARGS */
  75. @
  76.  
  77.  
  78. 1.2.1.1
  79. log
  80. @Initial branch for Sprite server.
  81. @
  82. text
  83. @d15 1
  84. a15 1
  85.  * $Header: /sprite/src/lib/include/sun3.md/RCS/varargs.h,v 1.2 89/07/14 09:17:42 rab Exp $ SPRITE (Berkeley)
  86. @
  87.  
  88.  
  89. 1.1
  90. log
  91. @Initial revision
  92. @
  93. text
  94. @d15 1
  95. a15 1
  96.  * $Header: varargs.h,v 1.3 88/06/17 17:31:32 ouster Exp $ SPRITE (Berkeley)
  97. d41 1
  98. a41 1
  99. #endif _VARARGS
  100. @
  101.